package br.com.rfqx.procurement.billing;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import lombok.Data;

@Entity
@Data
public class Billing implements Serializable {

	private static final long serialVersionUID = 1L;

	@Id
    @Column(name = "id", nullable = false)
    @GeneratedValue(strategy=GenerationType.IDENTITY)
    private Integer id;

    @Column(name = "description", nullable = false, length = 250)
    private String description;

    @Column(name = "creationDate", nullable = false)
    @Temporal(TemporalType.TIMESTAMP)
    private Date creationDate;

    @Column(name = "lastupdate", nullable = false)
    @Temporal(TemporalType.TIMESTAMP)
    private Date lastUpdate;

    @Basic(optional = false)
    @Column(name = "createdby", nullable = false, length = 250)
    private String createdBy;

    @Basic(optional = false)
    @Column(name = "ammount", nullable = false)
    private double ammount;

    @Basic(optional = false)
    @Column(name = "ammountTotal", nullable = false, length = 45)
    private double ammountTotal;

    @Basic(optional = false)
    @Column(name = "paymentNumbers", nullable = false)
    private int paymentNumbers;

    @Column(name = "expirationDate")
    @Temporal(TemporalType.TIMESTAMP)
    private Date expirationDate;

    @Column(name = "paymentDate")
    @Temporal(TemporalType.TIMESTAMP)
    private Date paymentDate;

    @Column(name = "taxammount", precision = 22)
    private Double taxAmmount;
	
	
	
    
    
}
